package com.iss.service;

import com.iss.model.ResponseMessage;
import com.iss.model.User;

public class UserService {

    public ResponseMessage login(User user){
        ResponseMessage responseMessage = new ResponseMessage();

        if(user.getUsername().equals("admin")&&user.getPassword().equals("123456")){
            responseMessage.setFlag(true);
        }else {
            responseMessage.setFlag(false);

        }

        return responseMessage;
    }
}
